package net.skystudio.es.entity;

import lombok.Data;
import net.skystudio.es.common.BaseEntity;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "index_hotwords")
public class HotWords extends BaseEntity {

    private static final long serialVersionUID=1L;

    @Id
    private String id;

    @Field(type = FieldType.Keyword)
    private String userId;

    @Field(type = FieldType.Keyword)
    private String hotWord;

    @Field(type = FieldType.Long)
    private Long count;


}
